import request from "@/utils/request";

/**
 * 获取品牌数据
 * @param {Integer} 品牌条数
 * @returns Promise
 */
export const findBrand = (limit = 6) => {
  return request("/home/brand", "get", { limit });
};

/**
 * 获取广告轮播图数据
 * @returns Promise
 */
export const findBanner= () => {
  return request("/home/banner", "get");
};
/**
 * 获取新鲜好物数据
 * @returns Promise
 */
export const findNew = () => {
  return request('home/new', 'get')
}
/**
 * 人气推荐
 * @returns Promise
 */

export const findHot = () => {
  return request('home/hot', 'get')
}

/**
 * 产品区块
 * @returns Promise
 */
export const findGoods = () => {
  return request('home/goods', 'get')
}

/**
 * 最新专题
 * @returns Promise
 */
export const findSpecial = () => {
  return request("home/special", "get");
};